Skip to content

fix(control-plane): stabilize v2.4.0 explore, context, and checkpoint tail slice (Slice B4) - #9161

Merged
loopx-agent merged 1 commit into
mainfrom
codex/release-2.4.0-explore-context-tail-fixes-20261121
Nov 21, 2026
Merged

loopx-agent merged 1 commit into
mainfrom
codex/release-2.4.0-explore-context-tail-fixes-20261121

Conversation

@loopx-agent

@loopx-agent loopx-agent commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Stabilize the v2.4.0 explore, context-capture, replan-view, and checkpoint tail slice (Slice B4, 20 tests/control_plane/ modules + TypeScript accounting regression test) against the current typed C1 / turn-envelope / prepared-lease contracts.

Delivery Brief

  • Gap & Production Fixes:
    1. loopx/control_plane/projects/registry_codec.py: Deferred from ..runtime.document_io import fsync_state_directory from module import time into ProjectRegistryTransaction.backup_preimage, breaking a circular import encountered when loading feedback adapters (test_feedback_adapter_loading.py).
    2. loopx/control_plane/quota/accounting_artifact_transaction.ts: Updated readQuotaSpendEventFromRun so checkpoint-relocated runtime_root copies whose runs/index.jsonl rows retain an absolute <old_runtime>/goals/<goalId>/runs/<name>.json path resolve join(runsDirReal, <name>.json) strictly inside runsDirReal while still rejecting arbitrary or cross-goal external paths (quota spend json_path must stay inside the goal runs directory), with regression coverage added in tests/control_plane_ts/quota_spend_commit.test.ts.
  • Pre-Cutover Test & Fixture Alignment (tests/control_plane/, 19 modules):
    • Updated stale fixtures/assertions for compact replan_cli_view / turn_envelope projections (replan_action_packet.review, interaction_contract.agent_channel.work_context, detail_ref.full_decision, result_details.command, context-project --capture-sha256), quota_settlement_plan_v2 one-step writeback+spend semantics, host_binding / signed complete-turn contract integrity, CLI todo complete rollout receipts, todo supersede lifecycle recovery after early lease release under 2f4c4e92c3, and explicit execution_preparation.lease_proof forwarding in refresh-state.
  • Boundary & Quality: No AGENTS.md / RFC semantic changes, no .local/ or private state in tracked files, and zero edits outside this slice's boundary.

Verification

  • 20 / 20 assigned tests/control_plane/ modules (post-rebase on origin/main 982b539248):
    • Sequential (test_context_capture_registry_independence.py): 21 passed
    • Parallel (-n 8, remaining 19 modules): 795 passed, 12 skipped
  • TypeScript control-plane & typecheck (post-rebase):
    • node --experimental-strip-types --test tests/control_plane_ts/quota_spend_commit.test.ts: 29 passed, 0 failed
    • npm run typecheck:control-plane (tsc --project tsconfig.control-plane.json --noEmit): passed (0 errors)
  • Python lint / static / RFC / boundary checks:
    • ruff check loopx/ and all 19 modified test files: All checks passed!
    • mypy (configured 17 strict files) & mypy loopx/control_plane/projects/registry_codec.py: 0 errors
    • scripts/check_rfc_bilingual.py --base origin/main --head HEAD: passed
    • loopx check public boundary scan across all 22 changed files: ok: True (errors=0, warnings=0)
  • Goal-bound Change Quality & Premerge (personal-loopx-maintenance):
    • change-quality verify: receipt_id=cqr_2fa4a66ce9b0531fb3a7, receipt_valid=true, decision=pass, head_commit=12145f85774bddf5bc06df9f05aebb02280ecce3
    • loopx canary premerge --from-git-diff --git-diff-base origin/main --goal-id personal-loopx-maintenance: ok=true, gate.decision=pass, 23/23 checks passed (0 failed, 0 skipped; 4 direct checks, 1 py_compile, 10 catalog canaries, 8 risk-profile smokes)

@loopx-agent loopx-agent changed the title fix(control-plane): stabilize v2.4.0 explore, context, and checkpoint tail slice (#9161 / Slice B4) fix(control-plane): stabilize v2.4.0 explore, context, and checkpoint tail slice (Slice B4) Nov 21, 2026
@loopx-agent
loopx-agent merged commit a90abab into main Nov 21, 2026
28 of 44 checks passed
@loopx-agent
loopx-agent deleted the codex/release-2.4.0-explore-context-tail-fixes-20261121 branch November 21, 2026 01:45

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent, Gemini (Google), declaration_source=self_reported

Approval conclusion (author-owned PR; GitHub blocks formal self-approval)

Reviewed exact head: 12145f85774bddf5bc06df9f05aebb02280ecce3 (base main 982b539248074f5364ed9a212ded7cd65a2903cf; note: PR #9161 was squash-merged onto main at a90abab829de4170c37bd95bbb75afdb1c90a393 with identical tree delta 0 diffs vs 12145f85774bddf5bc06df9f05aebb02280ecce3, so this review also serves as the post-merge exact-head audit record).

动机 / Motivation

调用纯文本反馈校验的下游模块(如 loopx.feedback 纯校验入口)、在 checkpoint 迁移后的隔离 runtime_root 上执行额度结算回读或 void 查询的运行时调用方,以及维护 tests/control_plane/ 回归套件的 LoopX 开发者与发布门禁。

在修改前基线中,导入 loopx.control_plane.projects.registry_codec 会在模块加载期立即导入 loopx.control_plane.runtime.document_io,导致纯反馈文本校验在无写适配器环境中抛出 ImportError;同时,当检查点目录迁移到新的 runtime_root 后,runs/index.jsonl 中残留的原绝对 json_path 会被 readQuotaSpendEventFromRun 直接按旧路径校验并触发越界拒绝;此外,19 个 tests/control_plane/ 测试模块仍沿用旧版紧凑包、两步 CLI 扣费和未携带 lease_proof 的调用形态。修改后,backup_preimage 仅在实际落盘时按需延迟导入 fsync_state_directory,readQuotaSpendEventFromRun 将旧的 .../goals/<goalId>/runs/<name>.json 路径安全重锚定至当前目标的 runsDirReal,且 20 个控制面测试文件全面对齐当前 origin/main 契约。

模块导入 registry_codec 不再提前拉起 document_io,loopx.feedback.validate_local_control_text 在无写适配器环境中可正常执行;checkpoint 迁移后的 runsDir 可正确读取同目标下的重定位 spend JSON 工件,同时仍严格拒绝跨目标、相对路径穿越及符号链接越界;20 个 tests/control_plane/ 模块、TypeScript 会计测试与控制面静态检查在 exact head 上全部通过。

范围边界(Non-goals): 本 PR 不新增状态枚举或协议字段,不更改 validateReceiptPaths 的写入期目录约束,不放宽 refresh-state 的 task-lease 与签名校验,也不修改任何 RFC 文档、配置默认值或私有状态。

改动思路 / Approach

两处生产修复均落在原有单一职责边界内:registry_codec.py 仅将 fsync_state_directory 从模块顶层移入需要目录刷盘的 ProjectRegistryTransaction.backup_preimage 方法内,未引入第二套持久化或门控逻辑;accounting_artifact_transaction.ts 仅在既有只读回读函数 readQuotaSpendEventFromRun 内把跨 runtime_root 的合法 goals/<goalId>/runs/<name>.json basename 重新锚定到当前 runsDirReal,保持写入校验 validateReceiptPaths 与身份字段核对严格不变。其余 20 个测试文件的修改均属于测试夹具与断言对当前主干契约的同步,未向生产代码注入兼容 shim。

当前 PR 边界: 仅包含 registry_codec.py 延迟导入、accounting_artifact_transaction.ts 只读回读重锚定、quota_spend_commit.test.ts 新增正反回归用例,以及 19 个 tests/control_plane/test_*.py 测试对齐(共 22 个文件)。

维度 基线 (982b539248) 当前头 (12145f8577) 关键边界与不变量
registry_codec 导入 模块顶层直接导入 document_io.fsync_state_directory 移入 backup_preimage 的 if not target.exists(): 内 纯校验路径不再触发写适配器依赖;写入落盘仍执行 0o600 与目录 fsync
readQuotaSpendEventFromRun 直接对 run.json_path 做 realpath 并校验处于当前 runsDirReal 对形如 .../goals/<goalId>/runs/<name>.json 的绝对路径重锚定到 join(runsDirReal, <name>.json) 重锚定后仍走 realpath 与 relative(runsDirReal, targetPath) 越界拒绝,不回退读取旧目录
19 个控制面测试模块 残留旧版 envelope、quota_settlement_plan_v1 与无 lease 调用 同步为 replan_cli_view、quota_settlement_plan_v2、lease_proof、todo supersede 与重签名负例 未删减安全/权威/只读/重放断言,反而补强历史包与签名双路径拒绝覆盖

相比在调用方捕获 ImportError 或在测试层弱化路径隔离校验,直接在各自单一职责拥有者内做最小修复能够以最小改动面保住全部原有不变量,且完全可逆。

具体改动 / Changes

Specification basis: 本 PR 属于 v2.4.0 收尾稳定化修复与既有测试契约对齐切片,无单独新增或修改的设计规范/RFC(spec_basis: no_spec,spec_source: none),各项实现均对照 origin/main 既有控制面实现与测试断言验收。

关键代码讲解

  1. loopx/control_plane/projects/registry_codec.py (ProjectRegistryTransaction.backup_preimage, L424-L450)
    • 职责与前后行为: 移除模块顶层 from ..runtime.document_io import fsync_state_directory,改在 backup_preimage() 创建新 .bak 文件分支内(L439)按需导入并调用 fsync_state_directory(directory)。
    • 不变量与失败边界: 已检索全仓调用点,所有测试(如 test_todo_projection_recovery.py、test_todo_machine_section_projection.py)均直接 patch document_io.fsync_state_directory,无任何调用方依赖 registry_codec.fsync_state_directory 模块属性;备份文件仍经由 protect_private_path (0o600)、父目录非 symlink 检查与回读字节比对后才返回。
  2. loopx/control_plane/quota/accounting_artifact_transaction.ts (readQuotaSpendEventFromRun, L524-L624)
    • 职责与前后行为: 在 runsDirReal = await realpath(runsDir) 之后,若 rawPath 为绝对路径、经 resolve() 规范化后逐级父目录严格匹配 .../goals/<goalId>/runs/<name>.json(且 extname(fileName) === ".json"、文件名非空且非 ./..),且 staysInsideInitial 为 false,则将候选路径收敛为 join(runsDirReal, fileName),否则仍取 resolve(rawPath)。
    • 安全与失败边界: candidatePath 仍必须经过 await realpath(candidatePath) 及 relative(runsDirReal, targetPath) 校验;若目录内存在指向外部的符号链接、.. 穿越、错误 goalId、错误父目录名(如 notgoals)或子目录越界,均抛出 "quota spend json_path must stay inside the goal runs directory"。若迁移后的目标文件缺失(ENOENT),直接返回 null,绝不会回退读取外部原 runtime_root 上的旧文件。读取后仍严格校验 classification、goal_id、quota_spend_commit、generated_at 与 spendIdentityMismatch。
  3. 测试与回归对齐(tests/control_plane_ts/quota_spend_commit.test.ts + 19 个 tests/control_plane/test_*.py)
    • quota_spend_commit.test.ts 新增正反对照测试,同时在 originalRoot 与 relocatedRoot 写入不同 effect_ref 文件以证明读取来自 relocatedRunsDir 而非旧路径,并验证跨目标路径与外层 outside.json 被拒绝。
    • 19 个 Python 测试模块分别对齐:通过 _turn_envelope_result("replan_cli_view", ...) 显式校验紧凑包省略再由 staging 视图读取;在 test_quota_vision_audit_references.py 中对篡改后契约调用 _resign_contract 使其穿透签名门直达 "Vision audit reference" 拒绝并保留无签名历史包测试;在 test_explore_result_writeback.py 中使用真实 todo complete 与 todo claim + todo supersede 测试早释放 lease 后的合法恢复和释放后幂等重放;在结算测试中对齐 quota_settlement_plan_v2 一步式 refresh-state 结算与 result_details 指针回读;在 test_dependency_dispatch_cli.py 中将 gate 显式指向 status="blocked" 的 second_gated 待办以验证 scoped_user_gate_fallback。

对主干的风险 / Risks

结论:未发现阻塞性(P0/P1)缺陷。

  • 生产路径与反事实安全验证:
    1. 循环导入与延迟绑定验证: 在基线与当前头上分别执行导入对照与 UnavailableWriters 阻断 document_io 的隔离测试,基线报错 ImportError,当前头 HEAD:PASS;直接调用 backup_preimage() 验证 document_io.fsync_state_directory 仍被调用一次且备份权限为 0o600。
    2. 路径重锚定安全反事实探针(6 项实测全部通过): 实测确认(a)runsDirReal 内指向外部文件的符号链接被拒绝;(b)迁移目标缺失(ENOENT)而旧目录仍存在文件时返回 null,不会泄露旧目录数据;(c)指向外部文件的相对路径被拒绝;(d)同 goalId 但错误父目录 notgoals 被拒绝;(e)外部 goals/<goalId>/runs/sub/x.json 子目录路径被拒绝;(f).../goals/<goalId>/runs/../../other/runs/x.json 经 resolve() 规范化后被拒绝。
  • 兼容性与职责边界(Scope fit / Default-off / Authority): registry_codec.py 与 accounting_artifact_transaction.ts 均为现役生产路径上的修复(activation_service.py、void_commit.ts、settlement_readback.ts),未引入任何未接入的死代码、未新增 opt-in 开关或外部依赖,亦未扩展任何 actor 生命周期或权限声明。写入期路径约束 validateReceiptPaths 与旧版 inline quota_event 兼容分支保持不变。
  • 残余风险(Residual risk): 测试中标为 12 skipped 的用例来自需本地真实外部二进制或非特权 POSIX 环境门控(LOOPX_NATIVE_CHECKPOINT_BIN 与 real Codex binary),与本次改动无关;若历史 runs/index.jsonl 在迁移前保存的是相对路径而非 .../goals/<goalId>/runs/<name>.json 绝对路径,重锚定分支不会触发(将按 resolve(rawPath) 保持 fail-closed,属安全保守行为)。

我的整体评价 / Verdict

  • Long-horizon 影响(improved): 消除纯反馈校验在无写适配器场景下的隐式循环导入失败,使 checkpoint 迁移后的长程额度结算与 void 回读能在新 runtime_root 上继续推进且不破坏隔离边界,同时让 20 个控制面核心回归套件在主干最新契约下稳定运转。
  • User experience 影响(not_applicable): 本次改动仅涉及 Python/TypeScript 控制面内部导入时机、只读回读路径边界校验及后端控制面单元测试对齐,未修改 apps/ 前端、Lark 卡片或 Markdown 渲染展示层,inspected path 为 git diff --name-only origin/main..HEAD 全部 22 个文件。 未验证范围(unverified_scope):none(纯后端控制面与测试文件改动,无渲染 UI 变更)。
  • Observable semantics 与代码体量: 对同一组正反输入执行基线与当前头实测对照,readQuotaSpendEventFromRun 仅针对迁移场景放行 .../goals/<goalId>/runs/<name>.json 到当前 runsDirReal 的重锚定,其余同目录及越界路径行为保持一致(intentional_change_validated);全 PR 仅 +299/-63(生产代码净增 +26/-3),体量克制且无需额外简化。
  • Semantic alignment: not_applicable(全 diff 未新增或修改任何 Enum、Literal、as const 或注册词表值,semantic-vocabulary-drift-smoke.py 在提供 node_modules 时实测通过 ok)。
  • 独立复核结果:
    • tests/control_plane_ts/quota_spend_commit.test.ts:29 passed, 0 failed(PASS);TypeScript 会计三套件合计 213 passed, 0 failed(PASS);npm run typecheck:control-plane:0 errors(PASS)。
    • tests/control_plane/test_context_capture_registry_independence.py(串行):21 passed(PASS)。
    • 其余 19 个修改的 tests/control_plane/ 模块 + test_feedback_adapter_loading.py + test_goal_activation_migration.py(-n 8 并行):813 passed, 12 skipped(PASS,12 skip 均为缺少真实外部 binary 门控的既有环境条件)。
    • 注册表与持久化关联回归套件(test_project_registry_codec.py 等 7 个模块):143 passed, 2 skipped(PASS)。
    • ruff check、mypy(17 个严格文件 + registry_codec.py)、scripts/check_rfc_bilingual.py、loopx check --scan-path(22 文件,0 error/warning)、Author CQR 验证(cqr_2fa4a66ce9b0531fb3a7,status=valid)及 semantic-vocabulary-drift-smoke.py(在隔离工作树挂载 node_modules 时):全部 PASS。注:canary premerge 在无 node_modules 的隔离审查工作树中因缺少本地 typescript npm 依赖和工作树路径哈希差异而分别报告 semantic-vocabulary-drift-smoke 与 change_quality_qualification 环境失败,其余 22/23 项检查全部 PASS,且该两项均已在对应前置条件(挂载 node_modules / 原作者工作树)下独立验证通过。
  • Exact-head freshness: 已在发布前重读远端 exact head 12145f85774bddf5bc06df9f05aebb02280ecce3 与 squash merge 提交 a90abab829de4170c37bd95bbb75afdb1c90a393(两者代码树 diff 为空),结论有效。

English verdict: APPROVE exact head 12145f8; both minimal production fixes (deferred fsync_state_directory import in registry_codec.py and strictly confined checkpoint json_path re-anchoring in accounting_artifact_transaction.ts) and all 20 aligned control-plane test files preserve security/authority invariants and pass independent Python, TypeScript, static, and counterfactual checks.

loopx-agent added a commit that referenced this pull request Nov 21, 2026
loopx-agent added a commit that referenced this pull request Nov 21, 2026
…wording (#9162)

* docs(release): reconcile final v2.4.0 stabilization PRs and boundary wording

Signed-off-by: LoopX Agent <[email protected]>

* docs(release): align #9158 and #9161 descriptions with verified commits

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>
loopx-agent added a commit that referenced this pull request Nov 21, 2026
* fix(cli): preserve typed runtime diagnostics in Turn failures

Signed-off-by: LoopX Agent <[email protected]>

* feat(steward): support per-endpoint model preferences and Codex-to-Antigravity failover (#9141)

Signed-off-by: LoopX Agent <[email protected]>

* Keep the prepared Chat adapter available to a retry (#9134)

A failed worker start can finish cleanup after a same-turn retry has
selected the adapter. Keep its lifetime tied to the Session and let
failed dispatch release its own worker registration. The regression
asserts one upstream turn and explicit adapter closure with the Session.

Port the fix from 4453e4bdd77486ec14b952f88ca893310b32e26c.

(cherry picked from commit 173e42b4f051b885c3a3389e1cad9c5722f7b7dd)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover zero-effect monitors and cleared-replan reports (#9143)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): admit flexible_primary_available executor transitions in conversation_scope (#9145)

Signed-off-by: LoopX Agent <[email protected]>

* Verify quota gate scope through signed lane references (#9101)

* test(quota): verify scoped gates through complete lane references

Signed-off-by: LoopX Agent <[email protected]>

* Test canonical quota gates in both public response modes

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* Test C1 planning and Host input from the original quota capture (#9102)

* Use recorded quota decisions in the no-Todo settlement regression

Signed-off-by: LoopX Agent <[email protected]>

* Exercise the complete Host prompt from the captured quota source

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* Prepare the CLI budget baseline with a private Git index (#9103)

Signed-off-by: LoopX Agent <[email protected]>

* Exercise C1 Goal delivery and bound replan from the saved source (#9104)

Signed-off-by: LoopX Agent <[email protected]>

* Keep long claim overlap scopes on demand (#9086)

* Link long thin-claim overlap lists to their receipts

Signed-off-by: LoopX Agent <[email protected]>

* Read claim overlap details without copying the lease

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): preserve explicit Monitor Todo selection (#9099)

Carry Todo selection provenance into quota admission. Preserve explicit secondary Monitor polling and recovery from previously admitted receipts.

Signed-off-by: LoopX Agent <[email protected]>

* Keep ready Todo scope details on the required context read (#9106)

Signed-off-by: LoopX Agent <[email protected]>

* Fix archive rollback with custom install directories (#9066)

* refactor(core): defer benchmark implementations during capability discovery

Preserve the benchmark toolkit public exports and static types while keeping execution and experiment implementations out of metadata discovery. Qualify source and installed Core paths, and reconcile the paired minimal/Standard RFC boundary without changing activation or authority defaults.

Signed-off-by: cicolord <[email protected]>

* Defer Yardstick evaluation until an enabled Explore read

Signed-off-by: cicolord <[email protected]>

* Omit empty Todo summary lanes from ordinary Worker context

Signed-off-by: cicolord <[email protected]>

* fix(update): honor configured archive directories during rollback

Signed-off-by: LoopX Agent <[email protected]>

* fix(lark): replay recall guard on current main

Signed-off-by: huangruiteng <[email protected]>

* docs: record the verified LoopX 2.3.0 release baseline

Signed-off-by: LoopX Agent <[email protected]>

* Preserve quota spend source when prepared work is admitted

Signed-off-by: LoopX Agent <[email protected]>

* test(quota): qualify native saved complete-Turn checkpoints

Signed-off-by: LoopX Agent <[email protected]>

* Retry cleanup of an owned file mutation marker

Signed-off-by: LoopX Agent <[email protected]>

* Keep synthetic Git-path test data outside the public source scan

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): share native preparation wait with readiness

Signed-off-by: LoopX Agent <[email protected]>

* fix(doctor): bind package update readback to its Python environment

Signed-off-by: LoopX Agent <[email protected]>

* Keep Doctor discovery separate from service activation

Signed-off-by: LoopX Agent <[email protected]>

* Verify the recorded Python launcher before Doctor probes it

Signed-off-by: LoopX Agent <[email protected]>

* fix(desktop): require runtime qualification for macOS preview updates

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): reuse replan projection owners during recovery

Signed-off-by: LoopX Agent <[email protected]>

* Qualify Codex 0.169 native context replay on main

Signed-off-by: LoopX Agent <[email protected]>

* Stop regenerating retired quota view aliases

Signed-off-by: LoopX Agent <[email protected]>

* fix: pin deferred native context reads to the original capture

Signed-off-by: LoopX Agent <[email protected]>

* Keep native capture navigation within small output budgets

Signed-off-by: LoopX Agent <[email protected]>

* Retire legacy heartbeat work prompt generation

Signed-off-by: LoopX Agent <[email protected]>

* Capture C1 composition failures as receipt diagnostics

Signed-off-by: LoopX Agent <[email protected]>

* Recover interrupted native Todo readiness from the original Turn

Signed-off-by: LoopX Agent <[email protected]>

* Revalidate the original lease before publishing resumed native context

Signed-off-by: LoopX Agent <[email protected]>

* Fence native readiness publication with the canonical lease writer

Signed-off-by: LoopX Agent <[email protected]>

* fix(scheduler): keep Codex fallback on the original C1 runtime

Signed-off-by: LoopX Agent <[email protected]>

* fix(scheduler): pin the originating fallback launchers

Signed-off-by: LoopX Agent <[email protected]>

* Retire the duplicate Codex App scheduler projection

Signed-off-by: LoopX Agent <[email protected]>

* Seed the recorded scheduler profile in the elapsed-backoff fixture

Signed-off-by: LoopX Agent <[email protected]>

* Verify canonical cadence on refused and settled Turns

Signed-off-by: LoopX Agent <[email protected]>

* Pin named Core commands in saved scheduler fallbacks

Signed-off-by: LoopX Agent <[email protected]>

* fix(research): preserve saved case addresses when a version cannot open

Signed-off-by: LoopX Agent <[email protected]>

* Preserve citation focus after a saved study refresh

Signed-off-by: LoopX Agent <[email protected]>

* Capture authenticated LoopX receipts for Research attention (#8790)

* feat(research): capture authenticated LoopX attention receipts

Signed-off-by: lusendong.6789 <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* fix(research): tighten attention receipt provenance

Signed-off-by: lusendong.6789 <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* fix(research): publish attention captures after source validation

Signed-off-by: huangruiteng <[email protected]>

---------

Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: huangruiteng <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Co-authored-by: huangruiteng <[email protected]>

* Recover the original Session and Turn from a confirmed Chat task

Signed-off-by: huangruiteng <[email protected]>

* perf(lark,native_chat): eliminate redundant full-directory JSON reparsing in steward chat loops (#9041)

* perf(lark,native_chat): avoid full directory reparsing in steward chat loops

- Make LarkOwnerAttention._route iterate capture candidates lazily so matching stops at the newest valid p2p capture.
- Reuse FileChatDiscovery in PrivateIngressObserver._records while preserving strict field validation and fail-closed errors.
- Reuse FileChatDiscovery in ChatExternalConversations.pending so unchanged request journals skip redundant JSON reads and stay mutation-isolated.
- Add regression and scan-efficiency tests in tests/test_lark_steward_directory_scan_perf.py.

Signed-off-by: LoopX Agent <[email protected]>

* fix(native-chat): project small recovery metadata fields to stop data_url memory growth

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* Retire transitional smoke checks and duplicate execution (#9073)

Signed-off-by: lusendong.6789 <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* feat(steward): support probe-gated generic continuous_monitor todos with handoff and user actions (#9074)

Signed-off-by: LoopX Agent <[email protected]>

* Remove redundant defensive prose from prompts and comments (#9072)

Remove redundant defensive prose while preserving published heartbeat wrappers and externally managed skill readiness.

Validated with 197 related tests, independent historical wrapper migrations and negative cases, installed-skill readback, and current-main quick canary. Existing CI qualification and infrastructure limitations remain recorded in PR #9072.

Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: Lusen Dong <[email protected]>

* Keep original Chat retry errors visible during receipt refresh

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): tolerate report validator python drift and allow cancel of mid-turn failed reports (#9077)

Signed-off-by: LoopX Agent <[email protected]>

* feat(steward): add exact-head PR review signals and protected merge confirmation (#9081)

Signed-off-by: LoopX Agent <[email protected]>

* feat(steward): add isolated OpenViking long-term memory with per-speaker boundaries (#9083)

Signed-off-by: LoopX Agent <[email protected]>

* refactor(content-ops): slim surface module and eliminate Any (#8961)

* refactor(content-ops): slim surface module and eliminate Any

Signed-off-by: LoopX Agent <[email protected]>

* fix(content-ops): reject malformed angle source_item_ids containers

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(collaboration): batch handoff query Goal lifetime guard lock per Goal (#9085)

Signed-off-by: LoopX Agent <[email protected]>

* fix(hosts): raise managed service startup readiness timeout to 45s (#9087)

Signed-off-by: LoopX Agent <[email protected]>

* perf(manager-context): memoize history_inspect lifecycle checks and scope runtime revision in handoffs query (#9088)

Eliminate the remaining O(N) Effect runtime RPCs and uncached runtime fingerprinting inside tracking.query(): enter effect_runtime_request_scope() for the query, memoize pure history_inspect lifecycle decisions across entries sharing identical Goal refs while holding the Goal lifetime guard, lazily discover legacy ingress files only when external audience recovery needs them, and preserve entry scan order across Goal batches.

Signed-off-by: LoopX Agent <[email protected]>

* refactor(lark): slim private_conversations below 2000 lines with net LOC reduction (#8929)

Signed-off-by: LoopX Agent <[email protected]>

* perf(chat,hosts): skip frontend source re-hashing on immutable installed releases and extend readiness timeout to 90s (#9089)

Signed-off-by: LoopX Agent <[email protected]>

* refactor(control-plane): split and slim quota monitor_poll_commit (#8885)

* refactor(control-plane): split and slim quota monitor_poll_commit

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): preserve legacy lane budget and observation diagnostic order

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* refactor(quota): slim loopx/quota.py and tighten Any count to zero (#8939)

Signed-off-by: LoopX Agent <[email protected]>

* refactor(native-chat): slim external_conversations below 2k lines and retire ceiling (#8911)

* refactor(native-chat): move steward commission mixin to steward_commands and retire external_conversations ceiling

Signed-off-by: LoopX Agent <[email protected]>

* fix(native-chat): respect include_raw_response in retained result recovery

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* refactor(chat): slim chat_runtime below 1,500 lines, fix entry-point project_contexts guard, and retire ceiling (#8920)

* refactor(chat): move session lifecycle mixin to session_open, deduplicate runtime helpers, and retire ceiling

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): drop turn_done_events slot before waking waiters on Thread.start failure

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): paginate open PR signal GraphQL, allow signal-unavailable monitor recovery, and cache private delivery scans (#9093)

Signed-off-by: LoopX Agent <[email protected]>

* perf(lark,native_chat): back off noop recovery retries and cache recovery lookups (#9096)

Signed-off-by: LoopX Agent <[email protected]>

* perf(native_chat,lark): cache unchanged quota backlog health and interrupt observations (#9098)

Signed-off-by: LoopX Agent <[email protected]>

* perf(lark,native_chat): coalesce listener snapshots and cache recovery event summaries (#9100)

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: cicolord <[email protected]>
Signed-off-by: LoopX Agent <[email protected]>
Signed-off-by: huangruiteng <[email protected]>
Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: Lusen Dong <[email protected]>
Co-authored-by: cicolord <[email protected]>
Co-authored-by: huangruiteng <[email protected]>
Co-authored-by: Lusen Dong <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* refactor(issue-fix): consolidate maintainer-correction admission and slim pr_lifecycle (#8897)

Signed-off-by: LoopX Agent <[email protected]>

* Fix truncated requests and responses in the Codex API relay (#8713)

* fix(codex relay): fence incomplete model requests before drain

Signed-off-by: LoopX Agent <[email protected]>

* fix(codex relay): surface incomplete upstream responses

Port the verified response framing fix to the request-admission branch. Original candidate 27bc3aee311cdfc6a00466ff9d3b58c7db36e01b.

Signed-off-by: LoopX Agent <[email protected]>

* Bound Codex relay writes to clients that stop reading

Signed-off-by: LoopX Agent <[email protected]>

* Reject upstream chunked responses missing the trailer terminator

Signed-off-by: LoopX Agent <[email protected]>

* Validate upstream chunk data delimiters before relay completion

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(release): repair dsh closeout test, antigravity failover alias, and release download retry (#9147)

Signed-off-by: LoopX Agent <[email protected]>

* docs(release): update v2.4.0 release notes and dsh-loopx-plugin 0.1.1-beta.7 README (#9149)

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): recover saved answers and diagnose lost workers (#9120)

* fix(chat): recover saved answers and diagnose lost workers

Signed-off-by: LoopX Agent <[email protected]>

* style(lark): keep private_conversations within module line budget

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): retain execution_worker_exited in pending backlog count

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): resume steward requests lost before dispatch (#9125)

Signed-off-by: LoopX Agent <[email protected]>

* fix(benchmark): restore frozen v1 archives and align checkpoint/runtime tests with C1 defaults (#9151)

Signed-off-by: LoopX Agent <[email protected]>

* fix(release): stabilize CLI help, architecture guards, onboarding gate, and public smokes (#9152)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover report selection across python upgrades and prevent queue kill on observation monitors (#9155)

Signed-off-by: LoopX Agent <[email protected]>

* fix(release): align extensions, chat, presentation, and transport tests for v2.4.0 (#9156)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): stabilize v2.4.0 quota, turn-envelope, and capabilities slice (Slice B1) (#9154)

* fix(control-plane): stabilize v2.4.0 quota, turn-envelope, and capabilities slice

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): preserve tokenless identity and exact numeric types in attach_complete_turn_context

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover frozen report contract failures and rebind resumed task leases (#9157)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover pre-dispatch runtime failures across endpoints and stop receipt-unknown disk churn (#9159)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control_plane): align lease recovery, settlement readback, and runtime fixtures (#9158)

* fix(control_plane): align lease recovery, settlement readback, and runtime fixtures

Signed-off-by: LoopX Agent <[email protected]>

* fix(control_plane): forward record_capture in worker outage test and harden version type guard

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): stabilize v2.4.0 explore, context, and checkpoint tail slice (Slice B4) (#9161)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): stabilize v2.4.0 replan, monitor recovery, and staged-read slice (Slice B5) (#9160)

Signed-off-by: LoopX Agent <[email protected]>

* docs(release): reconcile final v2.4.0 stabilization PRs and boundary wording (#9162)

* docs(release): reconcile final v2.4.0 stabilization PRs and boundary wording

Signed-off-by: LoopX Agent <[email protected]>

* docs(release): align #9158 and #9161 descriptions with verified commits

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): tolerate minor JSON delimiter glitches and recover saved report candidates (#9164)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): preserve bound yardstick reversals in native replan openings (#9165)

Signed-off-by: LoopX Agent <[email protected]>

* fix(native-chat): recover loopback relay 401 failures and isolate test auth (#9167)

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>
Signed-off-by: cicolord <[email protected]>
Signed-off-by: huangruiteng <[email protected]>
Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: Lusen Dong <[email protected]>
Co-authored-by: cicolord <[email protected]>
Co-authored-by: huangruiteng <[email protected]>
Co-authored-by: Lusen Dong <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant